package cn.z2huo.datastructure.linearlist.doublelinkedlist.entity;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 双向链表节点
 *
 * @author z2huo
 */
@Data
@Accessors(chain = true)
public class Node<T> {

    private T data;

    private Node<T> next;

    private Node<T> prior;

    public Node() {
    }

    public Node(T data, Node<T> next, Node<T> prior) {
        this.data = data;
        this.next = next;
        this.prior = prior;
    }

}
